/**
 * Created by yudongyang on 2016/3/1 17:49.
 * mail: yudongyang@kehaoinfo.com
 **/

package com.wujie.activies;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;


/**
 * Created by yudongyang on 2016/3/1.
 */
public class ConfigManage {
    private static Properties globalconfig = new Properties();
    private static Logger TRACE = LoggerFactory.getLogger(ConfigManage.class);

    static {
        InputStream inputStream = ConfigManage.class.getResourceAsStream("/dep/globalconfig.properties");
        try {
            globalconfig.load(inputStream);
        } catch (IOException e) {
            TRACE.error("初始化全局配置文件失败 ",e);
        }
    }

    public static Object getProp(String key){
        return globalconfig.get(key);
    }
}
